import request from "@/util/request";
import type {StorageBucket} from "@/api/file/bucket/type";

export function reqGetBucketList() {
    return request<StorageBucket[]>({
        url: "/file/bucket/list",
        method: "get"
    });
}
export function reqCreateBucket(data:StorageBucket) {
    return request<StorageBucket>({
        url: "/file/bucket",
        method: "post",
        data
    });
}
